﻿using YawetagDemo.Framework.Data;

namespace YawetagDemo.Console.Models
{
    public class AlbumRankingItemModel
    {
        public AlbumRankingItemModel(IAlbumRankingItem entity)
        {
            BandName = entity.BandName;
            Name = entity.Name;
            ReleaseDate = entity.ReleaseDate.ToShortDateString();

            Stars = entity.Stars.ToString("N2");
        }

        public string BandName { get; private set; }
        public string Name { get; private set; }
        public string ReleaseDate { get; private set; }

        public string Stars { get; private set; }
    }
}
